import { type PropsWithChildren } from 'react'
import '@/assets/styles/base.scss'
import '@/assets/styles/iconfont.scss'
import 'animate.css'
import { RecoilRoot } from 'recoil'
import { View } from '@tarojs/components'
import Taro from '@tarojs/taro'

export default function App(props: PropsWithChildren) {
  Taro.onThemeChange(t => {
    console.log('fffdsaf', t)
  })

  return (
    <RecoilRoot>
      <View className="light">{props.children}</View>
    </RecoilRoot>
  )
}
